Jason Turner
283152a880
Speed up print functions
2014-11-14 09:45:49 -07:00
Jason Turner
dc3ef087e2
Merge branch 'performance_evaluations' into performance_test
2014-11-14 08:00:08 -07:00
Jason Turner
032ba63b8a
Add fun_call_performance samples
2014-11-14 07:41:43 -07:00
Jason Turner
63a083b47b
Remove uses of std::endl, which imply a flush
2014-11-13 10:13:51 -07:00
Jason Turner
9e8b833d11
Code cleanups
2014-10-18 16:18:56 -06:00
Jason Turner
48c97bce9c
Add faux-inheritance example
2014-10-12 22:13:40 -07:00
Jason Turner
eed90b521d
Spelling corrections and comment fixes
2014-09-08 11:10:53 -06:00
Jason Turner
4018c873dc
Spelling fixes, phase 1.
2014-05-29 20:16:47 -06:00
Jason Turner
46e7d0ab99
Clean up tab vs space issues
...
discovered by @axelstudios
2014-05-23 09:56:55 -06:00
Jason Turner
20b40d3970
Merge branch 'master' into ChaiScript_5_0_CPP_11
2014-02-22 14:44:38 -07:00
Jason Turner
04131d208b
Fix type on range.chai
2014-02-22 14:44:07 -07:00
Jason Turner
101225aa68
- Fix legit threading issue which shows itself on clang / macos mostly
...
- Fix all warnings that I can / ignore those caused by boost
2013-05-26 22:47:23 -06:00
Jason Turner
47e44d2f9e
Merge branch 'master' into ChaiScript_5_0_CPP_11
...
Conflicts:
include/chaiscript/dispatchkit/bootstrap.hpp
include/chaiscript/dispatchkit/boxed_cast.hpp
include/chaiscript/dispatchkit/boxed_cast_helper.hpp
include/chaiscript/dispatchkit/dynamic_cast_conversion.hpp
include/chaiscript/dispatchkit/dynamic_object.hpp
include/chaiscript/dispatchkit/exception_specification.hpp
include/chaiscript/dispatchkit/function_call.hpp
include/chaiscript/dispatchkit/function_call_detail.hpp
include/chaiscript/dispatchkit/proxy_functions.hpp
include/chaiscript/dispatchkit/proxy_functions_detail.hpp
include/chaiscript/language/chaiscript_engine.hpp
include/chaiscript/language/chaiscript_eval.hpp
2013-02-25 12:08:32 -07:00
Jason Turner
2afc09dad4
Eradicate global base_class registrations to prevent problems with threading and general memory management issues with knowing how and when to clean them up.
2013-02-25 11:00:14 -07:00
Jason Turner
691e002f90
Update to support building with MinGW #78
...
We cannot call MinGW a fully supported platform for C++11 yet:
- Concurrency is not yet supported by MinGW, so it is disabled by default
- A problem in the memory model / library loader is preventing derived type
casts from working. This may be able to be worked around, but has not been
yet.
2012-11-28 16:06:45 -07:00
Jason Turner
b7e1cf41e5
Move to using the new constructor that searched for the stdlib
...
to improve compile time.
2012-06-04 07:31:20 -06:00
Jason Turner
d2aba2ef56
Eliminate boost::lexical_cast usage completely #39
2012-06-03 09:20:15 -06:00
Jason Turner
9ec78752a0
Merge branch 'master' into 2011-09-09-CxScript
...
Conflicts:
include/chaiscript/dispatchkit/boxed_number.hpp
samples/example.cpp
2012-05-14 18:20:36 -06:00
Jason Turner
94fefa0690
Fix broken example.cpp
2012-05-14 18:09:36 -06:00
Jason Turner
136b877afa
Reduce cost of including chaiscript.hpp
...
- ChaiScript no longer includes or automatically instantiates std lib
- ChaiScript constructor now requires an std lib instance in the form
of a ModulePtr object
- This new layout facilitates better usage of compilation firewalls and
factories for reducing the overall impact of ChaiScript on a project
2011-12-27 21:37:00 -07:00
Jason Turner
cc927fc6bc
Remove remaining non-boost_pp libraries as requirements.
2011-09-12 11:09:57 -06:00
Jason Turner
aa402fdfde
swap boost::reference_wrapper for std::reference_wrapper
2011-09-10 10:52:59 -06:00
Jason Turner
53108463df
Move from boost::bind to std::bind
2011-09-10 10:19:55 -06:00
Jason Turner
c842bf14c1
Move from boost::function to std::function
2011-09-10 09:37:40 -06:00
Jason Turner
afa96ecbf9
Begin port to C++11
2011-09-10 06:55:27 -06:00
Jason Turner
bbe89e61bc
elimination of unused / outdated code and documentation cleanups.
2011-03-26 22:42:11 -06:00
Jason Turner
58e5df0a9a
Even more reorganization of namespaces to help with documentation and
...
clarity.
2011-03-25 15:42:18 -06:00
Jason Turner
ac0688a8d7
Fix warnings in memory_leak_test
2011-03-14 12:07:08 -06:00
Jason Turner
0b97fcb4df
Add better namespaces to make documentation easier to handle
2011-03-05 22:50:38 -07:00
Jason Turner
912379d58c
Fix some compile warnings
2010-11-09 21:06:50 +00:00
Jason Turner
906140ec78
Find and fix bug in handling of bound function types_infos and arity.
...
Remote outdated samples. Move working samples into samples folder and make part of build process. Make building of samples optional.
Closing #107
2010-11-08 05:22:15 +00:00
Jonathan Turner
ac8462fb67
Fix up some broken sample files
2009-12-02 14:29:42 +00:00
Jonathan Turner
5b424be4ed
Add error to CMakeList.txt on missing Boost. Fix if sample
2009-07-26 13:33:58 +00:00
Jonathan Turner
98edfc8dba
Code cleanup. Refactor chaiscript_eval to use functions instead of inline code
2009-07-08 22:01:40 +00:00
Jason Turner
90aa53bdc6
dump_system() looks nice now, lots of little updates. Annotations are displayed as well, but they do not work for the prelude, I don't know why. Any attempt to add them invalidates the function definition in question. sensors.chai does work, however
2009-07-08 04:22:47 +00:00
Jason Turner
a8d74cea6f
Add support for annotations to dispatchkit, and reflect that support in chaiscript.
...
Also, some documentation cleanups.
2009-07-08 02:03:25 +00:00
Jonathan Turner
042df442a1
Fixes to for loops. Added elseif and else
2009-07-01 17:13:52 +00:00
Jason Turner
714e1c0cec
Support cleaner usage of bind, by adding a built in _ variable
2009-06-29 23:00:29 +00:00
Jonathan Turner
ae3ce3fcb2
Fix arity when registering lambdas and functions
2009-06-25 23:14:46 +00:00
Jason Turner
46859b1918
Add support for function binding and cut down on some includes
2009-06-25 22:34:00 +00:00
Jason Turner
32edcf170d
Clean up some of the function callback and functor code, for easier registration, etc.
2009-06-23 03:01:56 +00:00
Jason Turner
d02620bb1b
Cleanup Cast_Helper and add new boxed_cast<>() function.
2009-06-23 02:47:47 +00:00
Jason Turner
80ed8eb505
Make EvalError a subclass of runtime_error and provide the std::exception with a robust description for easier debugging of callback/scripted function calls
2009-06-21 20:07:11 +00:00
Jason Turner
786d194689
Handle the ReturnVal exception at the eval_function level so that functions passed back to C++ land have their return values handled properly
2009-06-21 19:45:36 +00:00
Jonathan Turner
75431a052b
Added short form lambda: (x) : { x + 10 }. Fixed eval sample
2009-06-21 00:35:45 +00:00
Jason Turner
9f13858482
further the sensors example to load and parse files
2009-06-20 23:24:06 +00:00
Jason Turner
1919d88f4f
Prelim sensor callback implementation, should probably be moved out of the chaiscript dir at some point
2009-06-20 19:04:39 +00:00
Jason Turner
3d23bb68f6
Add support for std::pair
2009-06-20 16:02:22 +00:00
Jason Turner
d2d768e12c
Remove gratuitous to_string
2009-06-20 14:24:18 +00:00
Jason Turner
9a8af16ffb
add capability for passing functions back to C++ from script land, plus an example usage.
2009-06-18 18:36:43 +00:00