Bind error information
Hello, I wonder if it is somehow possible to see which functions failed to get binded in an module->BindAllImportedFunctions() call. It returns an error ID, but it doesn't help tracking down the error, especially not in a module with lots of imported functions. Thanks.
Good point. I'll have to improve this for a future version.
For now, the easiest way of doing it is to implement the BindAllImportedFunctions() yourself. Then you can add whatever messages you'd like.
To implement the function yourself you only need to copy the code from as_module.cpp and make minor adjustments to use the public interface to enumerate the imported functions and binding them.
For now, the easiest way of doing it is to implement the BindAllImportedFunctions() yourself. Then you can add whatever messages you'd like.
To implement the function yourself you only need to copy the code from as_module.cpp and make minor adjustments to use the public interface to enumerate the imported functions and binding them.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Manual binding does the job, but I am curious, has there been any thought on implementing built-in error messaging on bind failure?
It's a bit old one, I know.
It's a bit old one, I know.
Actually, the built-in function binding will probably be taken out of the core engine now that function pointers have been implemented. Don't worry though, I will implement automatic binding in an add-on instead. To the script writer there should be little difference.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement