I am sorry. I don't have any squirrel build script . Maybe can help you to see the RegisterBinding funcion in scriptingbindings.cpp file. There are defined all the bindings to: codeblocks code, wxWidgets types, constants, etc
I can try to help you whether you have any doubt. I want to review how squirrel virtual machine works and how bindings are done.
To reproduce the issue I have had to change "base" by "function" as parameter in my system: Debian GNU/Linux 11 (info below):
Then, "base" was not a keyword. I'll review it
Name : Code::Blocks
Version : 20.03-r11997
SDK Version : 2.0.0
Scintilla Version: 3.7.5
Author : The Code::Blocks Team
E-mail : info@codeblocks.org
Website :
http://www.codeblocks.orgwxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.20.