Skip to content

Commit

Permalink
Fix a bug in fennelbinary; don't try to use private symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jul 11, 2020
1 parent 9246027 commit aba0777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fennelbinary.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int main(int argc, char *argv[]) {
out [" /* native libraries */"]]
(each [_ path (ipairs native)]
(each [open (: (shellout (.. nm " " path))
:gmatch "[^dD] _?luaopen_([%a%p%d]+)")]
:gmatch "[^dDt] _?luaopen_([%a%p%d]+)")]
(table.insert out (: " int luaopen_%s(lua_State *L);" :format open))
(table.insert out (: " lua_pushcfunction(L, luaopen_%s);" :format open))
(table.insert out (: " lua_setfield(L, -2, \"%s\");\n"
Expand Down

0 comments on commit aba0777

Please sign in to comment.