Hello!
I found that the next small piece of code crashes the asIScriptModule Build() with Access Violation.
The code line m_callback = callback has an error obviously and should be changed to the one written in comment but still.
Many thanks!
funcdef void CALLBACK(MyParam@ param);
class MyParam {
int m_value;
MyParam(int value) {
m_value = value;
}
}
class MyClass {
CALLBACK@ m_callback;
MyClass(CALLBACK@ callback) {
m_callback = callback; // !!! MUST BE: @m_callback = @callback;
}
}
void main() {
}