Nimbin[12]?SDL & Graphics / sdl_runtime_compiler / commits / 4ab99b7

sdl_runtime_compiler git · main

SDL3 game for running and compiling code at runtime

sdl3 c++ compiler dlopen cmake · first commit 2026-04-19 · last commit 2026-07-03 (3 months ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-runtime-compiler

C++ 72.3% C 26.2%
git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gz

Rename memberfunctions

Christian Immanuel · 2026-05-31 21:21 · 4ab99b784662c2f54982a0664f3440d41366a7ef

 src/c_token/token_db.cpp | 4 ++--
 src/c_token/token_db.hpp | 4 ++--
 src/wall/text_wall.cpp   | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/c_token/token_db.cpp b/src/c_token/token_db.cpp
index bb85ab0..afdd9a1 100644
--- a/src/c_token/token_db.cpp
+++ b/src/c_token/token_db.cpp
@@ -165,7 +165,7 @@ TokenDB::find(const std::string& text)
 
 
 DynArray<const Token*>
-TokenDB::of_type(TokenType type)
+TokenDB::get_AllOfType(TokenType type)
 {
     DynArray<const Token*> result;
     for (const auto& t : all_tokens)
@@ -176,7 +176,7 @@ TokenDB::of_type(TokenType type)
 
 
 const char*
-TokenDB::type_name(TokenType t)
+TokenDB::get_TypeName(TokenType t)
 {
     switch (t) {
         case TokenType::Keyword:     return "Keyword";
diff --git a/src/c_token/token_db.hpp b/src/c_token/token_db.hpp
index 0bb2799..103c72d 100644
--- a/src/c_token/token_db.hpp
+++ b/src/c_token/token_db.hpp
@@ -6,8 +6,8 @@
 namespace TokenDB
 {
     const Token*           find(const std::string& text);
-    DynArray<const Token*> of_type(TokenType type);
-    const char*            type_name(TokenType type);
+    DynArray<const Token*> get_AllOfType(TokenType type);
+    const char*            get_TypeName(TokenType type);
 
     DynArray<std::string>  get_TestArrayAllKeywords();
 
diff --git a/src/wall/text_wall.cpp b/src/wall/text_wall.cpp
index c6c08aa..35fbf61 100644
--- a/src/wall/text_wall.cpp
+++ b/src/wall/text_wall.cpp
@@ -144,7 +144,7 @@ TextWall::show_TokenInfo(TextWallList& texts,
     Wall::Transform tf = Wall::get_Transform(Wall::Role::Info, world_scale);
 
     // Line 1: token text + type
-    std::string line1 = tok->text + "  [" + TokenDB::type_name(tok->type) + "]";
+    std::string line1 = tok->text + "  [" + TokenDB::get_TypeName(tok->type) + "]";
     // Line 2: short description
     std::string line2 = tok->short_desc;
     // Line 3: long description