From 682a00013cb0552ca4aad103b30e50659fe8462c Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 27 Mar 2024 13:48:19 +0100 Subject: [PATCH] bindings: implement returnself for lua And add a warning if the definition is missing for a new language. --- bindings/solv.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bindings/solv.i b/bindings/solv.i index a2b1cd52..682d2dcb 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -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 -- 2.47.2