Skip to content

Commit

Permalink
export load-module from the protobuf prelude (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo authored Oct 5, 2023
1 parent 0f63c74 commit fd65b16
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/std/protobuf/proto.ss
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
(export (except-out #t begin-module%%)
(rename: begin-module%% %%begin-module)
(import: :std/protobuf/macros)
(for-syntax read-module-body))
load-module
(for-syntax read-module-body load-module))

(defrules begin-module%% ()
((_ . body)
(%%begin-module (import (only-in :gerbil/core load-module)
(for-syntax (only-in :gerbil/core load-module)))
(export #t) . body)))
(%%begin-module (export #t) . body)))

(defsyntax (begin-protobuf stx)
(def (parse-body body)
Expand Down

0 comments on commit fd65b16

Please sign in to comment.