Remove value constructors for ConsoleValueRef & fix callbacks which use them. Fixes issue #1289

This commit is contained in:
James Urquhart 2015-05-06 23:28:46 +01:00 committed by Daniel Buckmaster
parent eb0351139e
commit 12d435c341
5 changed files with 17 additions and 43 deletions

View file

@ -76,9 +76,10 @@ extern "C" {
if (!entry)
return "";
ConsoleValueRef argv[] = {"consoleExportXML"};
static const char* exportArgv[1] = { "consoleExportXML" };
static StringStackConsoleWrapper exportCmd(1, exportArgv);
return entry->cb.mStringCallbackFunc(NULL, 1, argv);
return entry->cb.mStringCallbackFunc(NULL, exportCmd.argc, exportCmd.argv);
}
MarshalNativeEntry* script_get_namespace_entry(const char* nameSpace, const char* name)