Skip to content

Commit 6783762

Browse files
committed
Introduce raw mod
1 parent db24ba1 commit 6783762

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ mod bindings;
177177
#[macro_use]
178178
extern crate lazy_static;
179179

180+
// The `raw` module comes first so that it can provide macros during parsing of
181+
// other modules. It is not yet part of the crate's public API, but in the
182+
// spirit of *-sys modules exposing lowest-level bindings, it may someday be so.
183+
#[macro_use]
184+
pub(crate) mod raw;
185+
180186
pub mod jit;
181187
pub use jit::Jit;
182188

src/raw.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
macro_rules! jit_entry {
2+
( $entry:ident( $( $inarg:ident ),* )
3+
=> $stem:ident
4+
=> [ $( $suffix:ident ),* ]
5+
=> $invokes:ident($enum:ident $( , $outarg:ident )* )
6+
) => {
7+
fn $entry() { }
8+
}
9+
}
10+
11+
include!(concat!(env!("OUT_DIR"), "/entries.rs"));

0 commit comments

Comments
 (0)