This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\c\e\e\bindings\python>py build_EDA.py | |
Traceback (most recent call last): | |
File "C:\sw\python\3.4\64bit\lib\site-packages\cffi\cparser.py", line 260, in _parse | |
ast = _get_parser().parse(csource) | |
File "C:\sw\python\3.4\64bit\lib\site-packages\pycparser\c_parser.py", line 151, in parse | |
debug=debuglevel) | |
File "C:\sw\python\3.4\64bit\lib\site-packages\pycparser\ply\yacc.py", line 331, in parse | |
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc) | |
File "C:\sw\python\3.4\64bit\lib\site-packages\pycparser\ply\yacc.py", line 1181, in parseopt_notrack | |
tok = call_errorfunc(self.errorfunc, errtoken, self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cffi import FFI | |
ffi_ec = FFI() | |
ffi_ec.cdef(open('cffi-eC.h').read()) | |
ffi_ec.set_source("_pyeC", | |
'#include "eC.h"', | |
sources=["../c/eC.c"], | |
include_dirs=["../c"], | |
libraries=["ecere"], | |
library_dirs=["C:/Program Files/Ecere SDK/bin"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name = "WASM", | |
targetPlatform = linux, | |
numJobs = 8, | |
makeCommand = "mingw32-make", | |
ecpCommand = "ecp", | |
eccCommand = "ecc", | |
ecsCommand = "ecs", | |
earCommand = "ear", | |
cppCommand = "emcc.bat", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public define Phi = 1.6180339887; | |
bool IsPerfectSquare(uint64 number) | |
{ | |
double root = sqrt(number); | |
uint64 square = (uint64)root * (uint64)root; | |
return square == number; | |
} | |
struct Matrix2x2 |