forked from yaozhicheng/NEMU
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d482d9
commit d033e2f
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
%module(directors="1") NemuBR | ||
|
||
%apply unsigned long long {u_int64_t} | ||
%apply unsigned int {u_uint32_t} | ||
%apply unsigned short {u_uint16_t} | ||
%apply unsigned char {u_uint8_t} | ||
|
||
%apply unsigned long long {uint64_t} | ||
%apply unsigned int {uint32_t} | ||
%apply unsigned short {uint16_t} | ||
%apply unsigned char {uint8_t} | ||
|
||
%apply long long {i_int64_t} | ||
%apply int {i_int32_t} | ||
%apply short {i_int16_t} | ||
%apply char {i_int8_t} | ||
|
||
%apply long long {int64_t} | ||
%apply int {int32_t} | ||
%apply short {int16_t} | ||
%apply char {int8_t} | ||
|
||
%include std_string.i | ||
%include std_map.i | ||
%include std_vector.i | ||
|
||
namespace std { | ||
%template(StringVector) vector<string>; | ||
} | ||
|
||
%{ | ||
#include "branch_trace.h" | ||
%} | ||
|
||
%include "branch_trace.h" | ||
|