61
Contributions to C::B / Re: Fixed project tree broken sort
« Last post by ollydbg on February 28, 2026, 03:26:31 am »Thanks, I'm not familiar with this part of the code. Other devs may have a try. 

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

EDIT:
The solution recommended by Gemini is the same but using "unsigned int"CodeBindMethod(v, _SC("GetAlpha"), NoParamGetterInt<unsigned int, wxColour, &wxColour::GetAlpha>, _SC("wxColour::GetAlpha"));
: it gave me a more complex solution (tested with rev 13793 and it worked) :SQInteger wxColour_Blue(HSQUIRRELVM v)
{
ExtractParams1<const wxColour*> extractor(v);
if (!extractor.Process("wxColour_Blue"))
return extractor.ErrorMessage();
sq_pushinteger(v, extractor.p0->Blue());
return 1;
}
SQInteger wxColour_Green(HSQUIRRELVM v)
{
ExtractParams1<const wxColour*> extractor(v);
if (!extractor.Process("wxColour_Green"))
return extractor.ErrorMessage();
sq_pushinteger(v, extractor.p0->Green());
return 1;
}
SQInteger wxColour_Red(HSQUIRRELVM v)
{
ExtractParams1<const wxColour*> extractor(v);
if (!extractor.Process("wxColour_Red"))
return extractor.ErrorMessage();
sq_pushinteger(v, extractor.p0->Red());
return 1;
}
SQInteger wxColour_Alpha(HSQUIRRELVM v)
{
ExtractParams1<const wxColour*> extractor(v);
if (!extractor.Process("wxColour_Alpha"))
return extractor.ErrorMessage();
sq_pushinteger(v, extractor.p0->Alpha());
return 1;
}
BindMethod(v, _SC("Blue"), wxColour_Blue, _SC("wxColour::Blue"));
BindMethod(v, _SC("Green"), wxColour_Green, _SC("wxColour::Green"));
BindMethod(v, _SC("Red"), wxColour_Red, _SC("wxColour::Red"));
BindMethod(v, _SC("Alpha"), wxColour_Alpha, _SC("wxColour::Alpha"));
I've reverted the use of built-in variables in the codesnippets.cbp.
Sadly, this means we can never use the built-in macros in a .cbp file.
Is there a way to display within Code::Blocks the content of environment variables that are set by MacrosManager, so AMP, CODEBLOCKS, APP_PATH, ...
Is there a way to display within Code::Blocks the content of environment variables that are set by MacrosManager, so AMP, CODEBLOCKS, APP_PATH, ...