mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Introduce Python objectifier (#259)
This commit is contained in:
parent
34b68f1945
commit
81287b7ec0
13 changed files with 1702 additions and 1564 deletions
14
third_party/python/Include/yoink.h
vendored
14
third_party/python/Include/yoink.h
vendored
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue