Skip to content

Commit

Permalink
unignore include/branch_trace.i
Browse files Browse the repository at this point in the history
  • Loading branch information
yaozhicheng committed Apr 7, 2024
1 parent 2d482d9 commit d033e2f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
!scripts/runall.sh
!Kconfig
!.github/workflows/ci.yml
!include/branch_trace.i
include/config
include/generated
build
Expand Down
36 changes: 36 additions & 0 deletions include/branch_trace.i
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"

0 comments on commit d033e2f

Please sign in to comment.