Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zackthehuman/marmot
A C++ wrapper for Squirrel
https://github.com/zackthehuman/marmot
Last synced: 17 days ago
JSON representation
A C++ wrapper for Squirrel
- Host: GitHub
- URL: https://github.com/zackthehuman/marmot
- Owner: zackthehuman
- License: mit
- Created: 2014-01-22T04:19:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-24T04:36:33.000Z (almost 11 years ago)
- Last Synced: 2024-10-03T11:46:12.732Z (about 1 month ago)
- Language: C++
- Size: 375 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Marmot
Marmot is a C++ wrapper for [Squirrel](http://www.squirrel-lang.org). It has been
built and tested with Squirrel 3.04. Marmot aims to be easy to use and easy to
add into existing projects.## A Small Example
```cpp
#include
#includeint main() {
marmot::State sq;
sq["example"] = 1337;
int value = sq["example"].get();
assert(value == 1337);return 0;
}
```## Features
- Supports retrieval and setting of multiple types including std::string.
- Simple API that completely away the C stack API.
- operator[]-style manipulation of tables is provided.
- Support for tables.## Supported Compilers
Marmot makes use of C++11 features. GCC 4.7 and Clang 3.3 or higher should be
able to compile without problems.## License
Marmot is distributed with an MIT License. You can see LICENSE.txt for more info.
## Examples & Tests
See the `test` directory for examples of how to use the Marmot API.
## Kudos
This project was inspired by other C++ wrappers like [Sol](https://github.com/Rapptz/sol/)
and [Selene](https://github.com/jeremyong/Selene).