-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macro Debug #4
Comments
I have kind of a natural aversion to using the preprocessor for very much. I feel like re-defining function names might be asking for trouble. Don't the Linux people force always using ALLCAPS for #defines to avoid such a situation? |
They might always use all caps. I just typed it up real quick and pushed it as a separate branch. It works and there's only three functions, so I wouldn't be too worried about it, but then again, I've never experienced the horrors that occur from using macro's. |
Yeah, I have used the preprocessor to change the definition of I have to say, I'm not crazy about the printf and python script as a valgrind --tool=memcheck --leak-check=full ./test input On 2/9/2014 12:31 PM, Tres wrote:
|
I typed up some macros so the same command could be used to for regular memory allocation or allocating and printing. This could be a possible solution to printing vs callbacks. I'm assuming this could cause some problems with debugging as far as line numbers, so I left it as a separate branch. running "make macro.dbg" includes the macros when compiling.
The text was updated successfully, but these errors were encountered: