Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "Headers/Script.h"
#include <chaiscript/chaiscript_stdlib.hpp>

namespace Divide {
Script::Script(const stringImpl& sourceCode)
    : _scriptSource(sourceCode.c_str())
{
}

Script::Script(const stringImpl& scriptPath, FileType fileType)
{
    if (!scriptPath.empty()) {
        stringImpl source;
        readFile(scriptPath, source, fileType);
        _scriptSource = source.c_str();
    }
}

Script::~Script()
{
}

}; //namespace Divide

Commits for Divide-Framework/trunk/Source Code/Scripting/Script.cpp

Diff revisions: vs.
Revision Author Commited Message
842 IonutCava picture IonutCava Wed 01 Feb, 2017 17:25:15 +0000

[IonutCava]
- Start to implement scripting support via ChaiScript: http://chaiscript.com/
- Cleanup DELEGATE_CBK alias