aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2013-01-14 18:33:59 +0100
committergrischka <grischka>2013-01-14 18:41:37 +0100
commitc5892fe4f5b285dddea4ed89edba749e40346d1f (patch)
tree66cd1b13cc82ac9cfcf592591f26530b35aff139 /tcc.h
parent2daf8b96a82e51b719b6585ed2ba2719c682ee40 (diff)
downloadtinycc-c5892fe4f5b285dddea4ed89edba749e40346d1f.tar.gz
tinycc-c5892fe4f5b285dddea4ed89edba749e40346d1f.tar.bz2
Revert "Optimize vswap()"
This reverts commit 63193d1794b037eb4f3b6551596fa8a6d423e0c3. Had some problems (_STATIC_ASSERT) and was too ugly anyway. For retry, I'd suggest to implement a general function static inline void memswap (void *p1, void* p2, size_t n); and then use that. If you do so, please keep the original code as comment.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/tcc.h b/tcc.h
index 5489b49..b8b81c2 100644
--- a/tcc.h
+++ b/tcc.h
@@ -228,10 +228,6 @@
#define true 1
typedef int BOOL;
-#ifndef _STATIC_ASSERT
-#define _STATIC_ASSERT(cond) do { (void) sizeof(char [1 - 2*!(cond)]); } while(0)
-#endif
-
#define INCLUDE_STACK_SIZE 32
#define IFDEF_STACK_SIZE 64
#define VSTACK_SIZE 256