Skip to content

Commit

Permalink
add missing pj_status_t type to .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-page committed May 27, 2024
1 parent 6a1a50a commit 3ef7e2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pp-swig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ $SED -i -E 's/^(\s+)(result = (\([^(]+\)( &)?)?\((\([^)]+\))?arg1\)->([^(]+)\(((

# void methods
$SED -i -E 's/^(\s+)(\((\([^)]+\))?arg1\)->([^(]+)\((((\([^)]+\)\*?)?arg.|SWIG_STD_MOVE\(arg.\)),?)*\);)/\1\/\/\2\n\1mywrap_call([\&](){ \2 });/g w /dev/stdout' $OUTFILE

# add pj_status_t typedef
$SED -i '1i\export type pj_status_t = number;\n\n'

0 comments on commit 3ef7e2e

Please sign in to comment.