Error handling
In many games when an error message pops up it contains the source file and line where the error occured, how is this done? Are they''re API functions that report that information?
----------
Drago
osu!
There are some predefined ANSI C macros that provide file name, line number etc. Look up the following in your compiler manual:
__FILE__
__LINE__
(Double underscores!)
__FILE__
__LINE__
(Double underscores!)
I assume these macros work in Release mode (Visual C++ 6.0 SP3) aswell as Debug mode?
----------
Drago
----------
Drago
osu!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement