m-lua-scripting/pod: push pod constructors using luaL_newlib instead of manually

This commit is contained in:
George Kiagiadakis
2021-02-05 12:11:15 +02:00
parent 55f186ccec
commit d0113e54cb
2 changed files with 25 additions and 56 deletions

View File

@@ -121,24 +121,5 @@ SANDBOX_EXPORT = {
Node = WpNode_new,
LocalNode = WpImplNode_new,
ImplSession = WpImplSession_new,
Pod = {
None = WpSpaPodNone_new,
Boolean = WpSpaPodBoolean_new,
Id = WpSpaPodId_new,
Int = WpSpaPodInt_new,
Long = WpSpaPodLong_new,
Float = WpSpaPodFloat_new,
Double = WpSpaPodDouble_new,
String = WpSpaPodString_new,
Bytes = WpSpaPodBytes_new,
Pointer = WpSpaPodPointer_new,
Fd = WpSpaPodFd_new,
Rectangle = WpSpaPodRectangle_new,
Fraction = WpSpaPodFraction_new,
Object = WpSpaPodObject_new,
Struct = WpSpaPodStruct_new,
Sequence = WpSpaPodSequence_new,
Array = WpSpaPodArray_new,
Choice = WpSpaPodChoice_new,
}
Pod = WpSpaPod,
}