bool CreateCustomFunction(const char * name, SQLCustomFunction customFunction)
{
bool result = false;
+#if !defined(__EMSCRIPTEN__)
Class cfClass = customFunction._class;
customFunction.method = eClass_FindMethod(cfClass, "function", cfClass.module);
if(customFunction.method)
result = sqlite3_create_function(db, name, customFunction.args.count, SQLITE_UTF8, customFunction, SQLiteFunctionProcessor, null, null) == SQLITE_OK;
}
}
+#endif
return result;
}
}
public ffi_type * FFIGetType(Class type, bool structByValue)
{
+#if !defined(__EMSCRIPTEN__)
if(type)
switch(type.type)
{
}
else
return &ffi_type_void;
+#endif
return null;
}
static SerialBuffer staticBuffer { };
void SQLiteFunctionProcessor(sqlite3_context* context, int n, sqlite3_value** values)
{
+#if !defined(__EMSCRIPTEN__)
SQLCustomFunction sqlFunction = sqlite3_user_data(context);
/* // Simple 1 pointer param returning a string
delete data;
}
delete args;
+#endif
}
class SQLiteTable : Table