ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
166 stars 35 forks source link

Wrong null pointer #102

Closed MVogtDD closed 4 years ago

MVogtDD commented 4 years ago

Hello,

the following code is being generated when using the keypad:

-- m_pElemKeyPad = gslc_ElemXKeyPadCreate_Num(&m_gui, E_ELEM_KEYPAD, E_POP_KEYPAD, &m_sKeyPad, 65, 80, null, &sCfg);

However in C. the null pointer is case sensitive, it has to be NULL, not null.

Best regards, Marcus

ImpulseAdventure commented 4 years ago

Thanks for noticing this, Marcus! I'll reassign to the GUIslice-Builder

Pconti31 commented 4 years ago

This is a feature to make sure if a font isn't correctly defined you get a compiler error instead of a runtime crash. The larger question is how did you end up with an undefined font for keypad? I assume is has more to do with issue 103 so i'm closing this for now. Paul--