GCC:
Code: Select all
In file included from /home/edward-san/zdoom/branch/zscript/src/./v_video.h:41:0,
from /home/edward-san/zdoom/branch/zscript/src/posix/hardware.h:38,
from /home/edward-san/zdoom/branch/zscript/src/posix/sdl/hardware.cpp:39:
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:179:134: error: pasting "::" and "Destroy" does not give a valid preprocessing token
*ptr, args ... arglist) { return static_cast<object *>(ptr)->object::##func(arglist...); }
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:685:2: note: in expansion of macro ‘VMEXPORT_NATIVES_FUNC’
VMEXPORT_NATIVES_FUNC(Destroy)
^~~~~~~~~~~~~~~~~~~~~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h: In member function ‘void DVMObject<T>::Destroy()’:
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:648:3: error: ‘ExportedNatives’ was not declared in this scope
ExportedNatives<T>::Get()->Destroy<void, T>(this);
^~~~~~~~~~~~~~~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:648:20: error: expected primary-expression before ‘>’ token
ExportedNatives<T>::Get()->Destroy<void, T>(this);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:648:21: error: ‘::Get’ has not been declared
ExportedNatives<T>::Get()->Destroy<void, T>(this);
^~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:648:38: error: expected primary-expression before ‘void’
ExportedNatives<T>::Get()->Destroy<void, T>(this);
^~~~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h: In member function ‘void DVMObject<T>::Tick()’:
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:653:3: error: ‘ExportedNatives’ was not declared in this scope
ExportedNatives<T>::Get()->Tick<void, T>(this);
^~~~~~~~~~~~~~~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:653:20: error: expected primary-expression before ‘>’ token
ExportedNatives<T>::Get()->Tick<void, T>(this);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:653:21: error: ‘::Get’ has not been declared
ExportedNatives<T>::Get()->Tick<void, T>(this);
^~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:653:35: error: expected primary-expression before ‘void’
ExportedNatives<T>::Get()->Tick<void, T>(this);
^~~~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h: In member function ‘AInventory* DVMObject<T>::DropInventory(AInventory*)’:
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:10: error: ‘ExportedNatives’ was not declared in this scope
return ExportedNatives<T>::Get()->DropInventory<AInventory *, T>(this, item);
^~~~~~~~~~~~~~~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:27: error: expected primary-expression before ‘>’ token
return ExportedNatives<T>::Get()->DropInventory<AInventory *, T>(this, item);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:28: error: ‘::Get’ has not been declared
return ExportedNatives<T>::Get()->DropInventory<AInventory *, T>(this, item);
^~
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:62: error: expected primary-expression before ‘*’ token
return ExportedNatives<T>::Get()->DropInventory<AInventory *, T>(this, item);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:63: error: expected primary-expression before ‘,’ token
return ExportedNatives<T>::Get()->DropInventory<AInventory *, T>(this, item);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:66: error: expected primary-expression before ‘>’ token
return ExportedNatives<T>::Get()->DropInventory<AInventory *, T>(this, item);
^
Code: Select all
In file included from /home/edward-san/zdoom/branch/zscript/src/posix/sdl/hardware.cpp:39:
In file included from /home/edward-san/zdoom/branch/zscript/src/posix/hardware.h:38:
In file included from /home/edward-san/zdoom/branch/zscript/src/./v_video.h:41:
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:648:3: error: use of
undeclared identifier 'ExportedNatives'
ExportedNatives<T>::Get()->Destroy<void, T>(this);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:648:19: error: 'T' does
not refer to a value
ExportedNatives<T>::Get()->Destroy<void, T>(this);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:613:16: note: declared
here
template<class T>
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:648:30: error: use
'template' keyword to treat 'Destroy' as a dependent template name
ExportedNatives<T>::Get()->Destroy<void, T>(this);
^
template
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:648:23: error: no member
named 'Get' in the global namespace
ExportedNatives<T>::Get()->Destroy<void, T>(this);
~~^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:653:3: error: use of
undeclared identifier 'ExportedNatives'
ExportedNatives<T>::Get()->Tick<void, T>(this);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:653:19: error: 'T' does
not refer to a value
ExportedNatives<T>::Get()->Tick<void, T>(this);
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:613:16: note: declared
here
template<class T>
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:653:30: error: use
'template' keyword to treat 'Tick' as a dependent template name
ExportedNatives<T>::Get()->Tick<void, T>(this);
^
template
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:653:23: error: no member
named 'Get' in the global namespace
ExportedNatives<T>::Get()->Tick<void, T>(this);
~~^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:10: error: use of
undeclared identifier 'ExportedNatives'
return ExportedNatives<T>::Get()->DropInventory<AInvento...
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:26: error: 'T' does
not refer to a value
return ExportedNatives<T>::Get()->DropInventory<AInvento...
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:613:16: note: declared
here
template<class T>
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:30: error: no member
named 'Get' in the global namespace
return ExportedNatives<T>::Get()->DropInventory<AInvento...
~~^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:62: error: expected
'(' for function-style cast or type construction
...return ExportedNatives<T>::Get()->DropInventory<AInventory *, T>(this, i...
~~~~~~~~~~ ^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:658:63: error: expected
expression
...return ExportedNatives<T>::Get()->DropInventory<AInventory *, T>(this, i...
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:685:2: error: pasting
formed '::Destroy', an invalid preprocessing token
VMEXPORT_NATIVES_FUNC(Destroy)
^
/home/edward-san/zdoom/branch/zscript/src/./dobject.h:179:136: note: expanded
from macro 'VMEXPORT_NATIVES_FUNC'
...args ... arglist) { return static_cast<object *>(ptr)->object::##func(ar...
^
14 errors generated.