From ac4045fffd8a4d106ba757009121ef09f48e2200 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Fri, 5 Jan 2024 16:47:12 -0300 Subject: buil Use a newer version for mruby --- src/core.cpp | 4 ++-- src/main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/core.cpp b/src/core.cpp index e40370e..d47127b 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 Frederico de Oliveira Linhares + * Copyright 2022-2024 Frederico de Oliveira Linhares * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -117,7 +117,7 @@ load_game(void *obj) using namespace std::chrono; FILE *fp; - mrb_value main_obj = mrb_obj_iv_inspect(cg_core.mrb, cg_core.mrb->top_self); + mrb_value main_obj{mrb_top_self(cg_core.mrb)}; cg_core.game_name = "CandyGear Game"; diff --git a/src/main.cpp b/src/main.cpp index 75b7894..945928d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2022 Frederico de Oliveira Linhares + * Copyright 2022-2024 Frederico de Oliveira Linhares * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) return 1; } - mrb_value main_obj{mrb_obj_iv_inspect(cg_core.mrb, cg_core.mrb->top_self)}; + mrb_value main_obj{mrb_top_self(cg_core.mrb)}; mrb_funcall_id(cg_core.mrb, main_obj, cg_core.sym_init, 0); if (cg_core.mrb->exc) -- cgit v1.2.3