Skip to content
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

Error compiling QAtlas.cpp #6

Open
ghost opened this issue Mar 4, 2013 · 2 comments
Open

Error compiling QAtlas.cpp #6

ghost opened this issue Mar 4, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 4, 2013

Getting the following compilation error:

../../source/QAtlas.cpp:182:65: error: macro "QAssert" passed 3 arguments, but takes just 2
@timcloss
Copy link
Contributor

timcloss commented Mar 6, 2013

Hmm... OK that's a bug in our support for using OpenQuick outside of Marmalade.

In QDefines.h you will see the following code:

#define QAssert(cond, msg) CCAssert(cond, msg)
#define QTrace CCLOG
#define QWarning CCLOG

You need to define a version of QAssert that can take 3 arguments. This will probably mean changing it to an inline function, where the 3rd argument can default to being empty. You could then strcat the 2nd and 3rd arguments (if the 3rd argument exists) before passing on to CCAssert.

Does that make sense?

@sbc100
Copy link
Contributor

sbc100 commented Mar 16, 2013

Unfortunately it is not that simple. I fixed the issue with this change:

sbc100@56162cb

As far as I can tell the marmalade version should also be converted to use a macro otherwise you loose
all file/line/function information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants