Introduce Python objectifier (#259)

This commit is contained in:
Justine Tunney 2021-09-04 15:44:00 -07:00
parent 34b68f1945
commit 81287b7ec0
13 changed files with 1702 additions and 1564 deletions

View file

@ -2,17 +2,9 @@
#define COSMOPOLITAN_THIRD_PARTY_PYTHON_INCLUDE_YOINK_H_
#include "libc/dce.h"
#if !IsTiny()
#define PYTHON_YOINK(s) \
__asm__(".section .yoink\n\t" \
"nopl\t\"" s "\"\n\t" \
"nopl\t\"" s "c\"\n\t" \
#define PYTHON_YOINK(s) \
__asm__(".section .yoink\n\t" \
"nopl\t\"py:" s "\"\n\t" \
".previous")
#else
#define PYTHON_YOINK(s) \
__asm__(".section .yoink\n\t" \
"nopl\t\"" s "c\"\n\t" \
".previous")
#endif
#endif /* COSMOPOLITAN_THIRD_PARTY_PYTHON_INCLUDE_YOINK_H_ */