Talk:Use
Jump to navigation
Jump to search
DEFINE_FUNCTION vs DEFINE_USEFUNC
DEFINE_FUNCTION( ButtonUse )
expands to
{FIELD_VOID,nameHolder.GenerateName("ButtonUse"), { 0, 0}, 1, 0x0020, 0, 0, (inputfunc_t)((inputfunc_t)(&classNameTypedef::ButtonUse)) }
and DEFINE_USEFUNC( ButtonUse )
to
{FIELD_VOID,nameHolder.GenerateName("ButtonUse"), { 0, 0}, 1, 0x0020, 0, 0, (inputfunc_t)((USEPTR)(&classNameTypedef::ButtonUse))}
so considering difference is just the recast part it shouldn't matter in the end, though DEFINE_USEFUNC is still more proper to use --Nescius (talk) 15:26, 26 May 2025 (PDT)