summaryrefslogtreecommitdiff
path: root/src/core/script/Function.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-10-20 23:22:56 +0000
committerandreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf>2014-10-20 23:22:56 +0000
commitc654793a3a513a9c8ffcd1aa9c3962b6a72e61bd (patch)
tree7f54a352a0c196dc85a3262783bb95183d3b1d40 /src/core/script/Function.cpp
parent25fb41044ca080b794cbf4e85ff10e74e571ea24 (diff)
started to implement Function class which represents functions and methods, both on the host and the client side
git-svn-id: file:///var/local/svn/basicwriter@73 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src/core/script/Function.cpp')
-rw-r--r--src/core/script/Function.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/script/Function.cpp b/src/core/script/Function.cpp
new file mode 100644
index 0000000..d72df4c
--- /dev/null
+++ b/src/core/script/Function.cpp
@@ -0,0 +1,31 @@
+/*
+ Ousía
+ Copyright (C) 2014, 2015 Benjamin Paaßen, Andreas Stöckel
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "Function.hpp"
+
+namespace ousia {
+namespace script {
+
+std::pair<bool, std::vector<Variant>> validate(const std::vector<Variant> &args)
+{
+ return std::make_pair(true, std::vector<Variant>{});
+}
+
+}
+}
+