diff options
Diffstat (limited to '')
-rw-r--r-- | src/functionclose.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/functionclose.cpp b/src/functionclose.cpp new file mode 100644 index 0000000..ac9c6f6 --- /dev/null +++ b/src/functionclose.cpp | |||
@@ -0,0 +1,26 @@ | |||
1 | #include "functionclose.h" | ||
2 | #include "filemgr.h" | ||
3 | |||
4 | #include <bu/plugger.h> | ||
5 | PluginInterface3( pluginFunctionClose, close, FunctionClose, Function, | ||
6 | "Mike Buland", 0, 1 ); | ||
7 | |||
8 | FunctionClose::FunctionClose() | ||
9 | { | ||
10 | } | ||
11 | |||
12 | FunctionClose::~FunctionClose() | ||
13 | { | ||
14 | } | ||
15 | |||
16 | Bu::String FunctionClose::getName() const | ||
17 | { | ||
18 | return "close"; | ||
19 | } | ||
20 | |||
21 | Variable FunctionClose::call( Variable &input, VarList ) | ||
22 | { | ||
23 | FileMgr::getInstance().close( (int)input.getOpaque() ); | ||
24 | return Variable(); | ||
25 | } | ||
26 | |||