namespace qualifiers:: #1165
-
Just to check whether my understanding is totally wrong-- AAA::consts c; Thanks and best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
No that's not correct. You are required to use the shortened namespace on imported constants, globals, functions and macros. When I say "shortened namespace", I mean that if you have something like For types (enums, struct, unions, distinct) the namespace is not required unless the name is ambiguous. Note also that the current module always take precedence. So if you have a Even if you use a lot of modules, you should in general not need anything other than the required namespaces, that is the shortened namespace on constant/global/function/macro and no namespace on types. Also, note that you never place the namespace on declarations. |
Beta Was this translation helpful? Give feedback.
If you would actually link against the C function called
raylib_do_something
you'd use@extern(...)
, like this: