Menu

#3 Sanitize D2Funcs.h

1.0
accepted
PlugY (2)
2016-03-26
2016-03-26
No

In PlugY 10.00, D2Funcs.h holds definition of pointers to D2 functions and variables. This setup relies heavily on use of C macros, making it hard to understand what is going on. d2functions.h uses a trick with C macros to assign actual addresses to these pointers...while this ensures that no variable/pointer gets accidentally left out, it just feels wrong. The address assignment code and offset information will be moved to d2functions.cpp, and D2Funcs.h will be shrunk to only hold declarations of extern variables.

Discussion


Log in to post a comment.