On 21/11/2019 19:40, Ryan Joseph via fpc-pascal wrote:
> Do cvars not allow external symbol names like functions do? With function I 
> can declare a name but for cvar I'm getting an error.
> 
>   PyBaseString_Type:PPyTypeObject; cvar; external name 'somename';

The only thing cvar does is to mangle symbol name using the default
C-style name mangling. Specifying an explicit symbol name would just
overwrite whatever effect "cvar" has, so combining both is useless and
rejected.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to