Advertisement

Typedefs and integral types

Started by April 06, 2007 01:38 PM
1 comment, last by Deyja 17 years, 7 months ago
If I do this: engine->RegisterObjectType("size_t", sizeof(size_t), asOBJ_PRIMITIVE) Are the normal math operations going to work the same way they would as an int? All I want is a typedef sort of system.
Unfortunately not. You'll have to register all the operators you want to use.

typedefs will be implemented in the future.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
You can use a preprocessor (read: mine) and #define size_t uint.

This topic is closed to new replies.

Advertisement