Skip to content

Commit 2bc26d8

Browse files
committed
move assert.h osapi.h to private_include
1 parent 63ffefe commit 2bc26d8

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

component.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22
# Component Makefile
33
#
4-
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
5-
4+
COMPONENT_PRIV_INCLUDEDIRS=private_include
65
CFLAGS = -std=gnu99 -g3 -fno-stack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wpointer-arith -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -MMD -c -DF_CPU=240000000L -DESP32 -DCORE_DEBUG_LEVEL=0 -DNDEBUG
76

private_include/assert.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ifndef __DUMMY_ASSERT_H
2+
#define __DUMMY_ASSERT_H
3+
#ifdef NDEBUG
4+
#define assert(x)
5+
#else
6+
#include_next <assert.h>
7+
#endif
8+
#endif
9+
File renamed without changes.

sqlite3.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13476,11 +13476,6 @@ SQLITE_PRIVATE void sqlite3HashClear(Hash*);
1347613476
#include <assert.h>
1347713477
#include <stddef.h>
1347813478

13479-
#ifdef NDEBUG
13480-
#undef assert
13481-
#define assert(e)
13482-
#endif
13483-
1348413479
/*
1348513480
** Use a macro to replace memcpy() if compiled with SQLITE_INLINE_MEMCPY.
1348613481
** This allows better measurements of where memcpy() is used when running

0 commit comments

Comments
 (0)