Strange problem, when I compiled a function, within it using in-lined C, with my Vector.h defined C types it worked fine(#include was at top of listing) but when I copied the function into a type, it did not. I got scope errors and undefined types etc... just like the header was missing.
I then realised, when a function is placed within a type GLB takes all the types and puts them into a separate header file, away from my #include as part of the compilation process.
I needed a method for GLB to copy the in-lined #include with of the type (or "types", as I use the header with other types too) into GLBs own temp C header file, at compilation time.
I used this...
TYPE dummy_header
INLINE
#include "vector.h";
ENDINLINE
ENDTYPE
...this forces a copy of #include into GLBs temp header C file. Its a bit uncomfortable but it works. You only need to define this once for multiple extended types too.
My question is this, not being a native C programmer, is there a single way to instruct C to use a header across all source files that I can in-line easily?