bindings: Fixed support for C++ instantiating objects from eC
authorJerome St-Louis <jerome@ecere.com>
Wed, 1 Jun 2016 03:56:15 +0000 (23:56 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 21 Nov 2016 14:18:56 +0000 (09:18 -0500)
commit967249b91c594a954bf10323f69ae2682228961f
tree14eff9126791d6f32408c9440dd70be09f7e020d
parenta372765d27b3be011c4b8b9fb1ebc7567775bb1a
bindings: Fixed support for C++ instantiating objects from eC
- Opted to replace defining PSELF macro by extra parameter for set/get macros
- Tweaked SELF macro to include a 0x10 offset to avoid offsetof warnings on older MinGW/GCC
- ecs: Fixed both eC and C++ source files in the project (Using eC .main.ec main definition in that case,
   but not re-creating Application object; Defining __thisModule in eC.c for C/C++ only module)
- ecere/com/instance: Added eInstance_NewEx() with extra parameter to specify whether bindings construction still needs to be done
- Added 'bindingsClass' member to Class to use for bindings instead of data (Windows do make use of 'data' for class_data); Fixed class definition of Class and BinaryTree
- Commented out conflicting _strtoi64/_strtoui64
- Fixed enum declarations on non-C++11 (though the code still uses a lot of C++11 only features like constructor delegation)
- Fixed MAIN_DECLARATION to be 'extern "C" to work on older MinGW/GCC
- Overriding new and delete to able able to link without STL
- ecere/com/dataTypes: Fixed const_ness of Print* functions's typed_object parameter
bindings/c/eC.c
bindings/c/eC.h
bindings/c/ecere.h
bindings/cpp/eC.hpp
bindings/cpp/ecere.hpp
bindings/cpp/samples/foo.ec [new file with mode: 0644]
bindings/cpp/samples/form.cpp
bindings/cpp/samples/test.epj
compiler/ecs/ecs.ec
ecere/src/com/dataTypes.ec
ecere/src/com/instance.ec