[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] re: problems with assert.h (Luis Alejandro Muzzachiodi)
From: |
Henry Kroll |
Subject: |
[Tinycc-devel] re: problems with assert.h (Luis Alejandro Muzzachiodi) |
Date: |
Wed, 24 Nov 2010 17:09:50 -0800 |
On Wed, 2010-11-24 at 12:00 -0500, Luis Alejandro Muzzachiodi wrote:
> problems with assert.h (Luis Alejandro Muzzachiodi)
>/*** comment 1 ***
> #include <string.h>
> #include <assert.h>
> */
> #define NDEBUG
>
> void main() {
> char* uno="b";
> assert ( strcmp (uno, "a" ) == 0 );
> return 0;
> }
* avoid void main()
* Why the #define NDEBUG?
Compiles and works fine on Linux.
Try compiling with tcc -vvv and note which assert.h is being used.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] re: problems with assert.h (Luis Alejandro Muzzachiodi),
Henry Kroll <=