Utility library for providing native functionality to the Squirrel environment.
Diff: include/sqbind.h
- Revision:
- 1:1f66106257a0
- Parent:
- 0:a9a5c12f2d30
- Child:
- 2:3ae6f775f5d5
diff -r a9a5c12f2d30 -r 1f66106257a0 include/sqbind.h --- a/include/sqbind.h Tue Dec 16 08:15:55 2014 +0000 +++ b/include/sqbind.h Tue Dec 16 11:05:52 2014 +0000 @@ -129,7 +129,7 @@ template<class T> struct SqBindAllocator { - static SQBIND_INLINE T *construct() { + static SQBIND_INLINE T *construct(HSQUIRRELVM) { return SQBIND_NEW(T); } @@ -198,7 +198,7 @@ } if (params==1) { - instance=A::construct(); + instance=A::construct(v); if (!instance) return sqbind_throwerror(v,"Type '%s' does not support default constructor.\n",name);