Script binding vfuncs should be static
This commit is contained in:
parent
fa77726388
commit
6b94dd6bcb
|
@ -48,8 +48,8 @@
|
|||
#include "binding-types.h"
|
||||
#include "mrb-ext/marshal.h"
|
||||
|
||||
void mrbBindingExecute();
|
||||
void mrbBindingTerminate();
|
||||
static void mrbBindingExecute();
|
||||
static void mrbBindingTerminate();
|
||||
|
||||
ScriptBinding scriptBindingImpl =
|
||||
{
|
||||
|
@ -352,7 +352,7 @@ runRMXPScripts(mrb_state *mrb, mrbc_context *ctx)
|
|||
mrb_close(scriptMrb);
|
||||
}
|
||||
|
||||
void mrbBindingExecute()
|
||||
static void mrbBindingExecute()
|
||||
{
|
||||
mrb_state *mrb = mrb_open();
|
||||
|
||||
|
@ -389,7 +389,7 @@ void mrbBindingExecute()
|
|||
mrb_close(mrb);
|
||||
}
|
||||
|
||||
void mrbBindingTerminate()
|
||||
static void mrbBindingTerminate()
|
||||
{
|
||||
mrb_state *mrb = static_cast<mrb_state*>(gState->bindingData());
|
||||
MrbData *data = static_cast<MrbData*>(mrb->ud);
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "eventthread.h"
|
||||
#include "exception.h"
|
||||
#include "filesystem.h"
|
||||
#include "binding.h"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
@ -162,7 +163,7 @@ MRB_FUNCTION(kernelExit)
|
|||
{
|
||||
MRB_FUN_UNUSED_PARAM;
|
||||
|
||||
mrbBindingTerminate();
|
||||
scriptBinding->terminate();
|
||||
|
||||
return mrb_nil_value();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue