Hm... probably you need to put Inline part out of main source code, don't remember why atm, but in separate file it works ok:
main file:
// Note:
// Check "Project->Options->Console" to make console exe
GLOBAL value%
GLOBAL A$
STDOUT "***INLINE Test***\n"
value=0
STDOUT "Enter Hex Number > "
A$=STDIN$()
scan_key()
STDOUT "Decimal Value = " + (value)
// wait for user input to exit
A$=STDIN$()
second file:
INLINE
}
extern "C" {
#include <cstdio>
}
namespace __GLBASIC__ {
ENDINLINE
FUNCTION scan_key%:
INLINE
sscanf(A_Str,"%x",&value);
ENDINLINE
ENDFUNCTION
Another thing that to use GLB variables you need to be in GLB scope/namespace when in Inline.