Skip to content

Commit 1df096b

Browse files
committed
c/config.h: Make sure to disable assert() with DEBUG=0.
1 parent d1c52a4 commit 1df096b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

c/config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@
1414
# define _CRT_SECURE_NO_WARNINGS 1
1515
#endif
1616

17+
#if DEBUG == 0 && !defined(NDEBUG)
18+
#define NDEBUG // Disable assert()
19+
#endif
20+
1721
#endif // _MOOCORE_CONFIG_H_

0 commit comments

Comments
 (0)