Remove optnone

This commit is contained in:
Varun Patil 2019-05-08 17:16:32 +05:30
parent 5388573dbc
commit f9c9cb5bca
4 changed files with 10 additions and 10 deletions

View File

@ -91,7 +91,7 @@ void graphicsBindingInit(mrb_state *);
/* From module_rpg.c */
extern const uint8_t rpg_mrb[];
static void __attribute__ ((optnone)) mrbBindingInit(mrb_state *mrb)
static void mrbBindingInit(mrb_state *mrb)
{
int arena = mrb_gc_arena_save(mrb);
@ -262,7 +262,7 @@ runMrbFile(mrb_state *mrb, const char *filename)
static MrbData * mrbData;
static mrb_state * static_scriptmrb;
static void __attribute__ ((optnone)) main_update_loop() {
static void main_update_loop() {
mrb_state * mrb = (mrb_state *) static_cast<mrb_state*>(shState->bindingData());
mrb_load_nstring_cxt(mrb, "main_update_loop", 16, NULL);
#ifdef __EMSCRIPTEN__
@ -406,7 +406,7 @@ runRMXPScripts(mrb_state *mrb, mrbc_context *ctx)
#endif
}
static void __attribute__ ((optnone)) mrbBindingMain()
static void mrbBindingMain()
{
mrb_state *mrb = mrb_open();
@ -457,7 +457,7 @@ void downloadFailed(emscripten_fetch_t *fetch) {
emscripten_fetch_close(fetch);
}
void __attribute__ ((optnone)) supermainloop() {
void supermainloop() {
if (assetQ > 0) return;
if (initialized) {
@ -468,7 +468,7 @@ void __attribute__ ((optnone)) supermainloop() {
}
}
static void __attribute__ ((optnone)) mrbBindingExecute()
static void mrbBindingExecute()
{
assetQ = 1;
emscripten_fetch_attr_t attr;

View File

@ -29,7 +29,7 @@
DEF_TYPE(Bitmap);
__attribute__ ((optnone)) MRB_METHOD(bitmapInitialize)
MRB_METHOD(bitmapInitialize)
{
Bitmap *b = 0;
@ -65,7 +65,7 @@ __attribute__ ((optnone)) MRB_METHOD(bitmapInitialize)
return self;
}
__attribute__ ((optnone)) MRB_METHOD(bitmapWidth)
MRB_METHOD(bitmapWidth)
{
Bitmap *b = getPrivateData<Bitmap>(mrb, self);
@ -304,7 +304,7 @@ MRB_METHOD(bitmapSetFont)
INITCOPY_FUN(Bitmap)
void __attribute__ ((optnone))
void
bitmapBindingInit(mrb_state *mrb)
{
RClass *klass = defineClass(mrb, "Bitmap");

View File

@ -96,7 +96,7 @@ MRB_METHOD(disposableIsDisposed)
}
template<class C>
static __attribute__ ((optnone)) void disposableBindingInit(mrb_state *mrb, RClass *klass)
static void disposableBindingInit(mrb_state *mrb, RClass *klass)
{
mrb_define_method(mrb, klass, "dispose", disposableDispose<C>, MRB_ARGS_NONE());
mrb_define_method(mrb, klass, "disposed?", disposableIsDisposed<C>, MRB_ARGS_NONE());

View File

@ -181,7 +181,7 @@ INITCOPY_FUN(Rect)
mrb_define_method(mrb, klass, "inspect", Klass##Stringify, MRB_ARGS_NONE()); \
}
void __attribute__ ((optnone)) etcBindingInit(mrb_state *mrb)
void etcBindingInit(mrb_state *mrb)
{
RClass *klass;