Skip to content

Commit

Permalink
bindings: implement returnself for lua
Browse files Browse the repository at this point in the history
And add a warning if the definition is missing for a new language.
  • Loading branch information
mlschroe committed Mar 27, 2024
1 parent 8d5b43a commit 682a000
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/solv.i
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,12 @@ SWIG_AsValDepId(void *obj, int *val) {
Tcl_IncrRefCount(objv[1]);
Tcl_SetObjResult(interp, objv[1]);
}
#elif defined(SWIGLUA)
%typemap(out) void func {
lua_pushvalue(L, 1);SWIG_arg++;
}
#else
#warning returnself not implemented for this language
#endif
%enddef

Expand Down

0 comments on commit 682a000

Please sign in to comment.