mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
FIXED: GUI not showing up because of the interface user functions not getting registered, because of a file linking issue.
This commit is contained in:
parent
81df0aae27
commit
cfc78bd614
1 changed files with 15 additions and 0 deletions
|
@ -28,6 +28,21 @@ using namespace NLMISC;
|
|||
namespace NLGUI
|
||||
{
|
||||
|
||||
void ifexprufct_forcelink();
|
||||
|
||||
// Needed because otherwise GCC and co. omit the code in interface_expr_user_fct.cpp code
|
||||
// causing the GUI not to work.
|
||||
// It all happens because no function is called *directly* from that module.
|
||||
struct LinkTrickster
|
||||
{
|
||||
LinkTrickster()
|
||||
{
|
||||
ifexprufct_forcelink();
|
||||
}
|
||||
};
|
||||
|
||||
LinkTrickster linkTrickster;
|
||||
|
||||
// Yoyo: Act like a singleton, else registerUserFct may crash.
|
||||
CInterfaceExpr::TUserFctMap *CInterfaceExpr::_UserFct= NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue