1 |
/* |
2 |
* Copyright (c) 2014 Christian Schoenebeck |
3 |
* |
4 |
* http://www.linuxsampler.org |
5 |
* |
6 |
* This file is part of LinuxSampler and released under the same terms. |
7 |
* See README file for details. |
8 |
*/ |
9 |
|
10 |
#include "common.h" |
11 |
#include <iostream> |
12 |
|
13 |
namespace LinuxSampler { |
14 |
|
15 |
VMIntExpr* VMExpr::asInt() const { |
16 |
return const_cast<VMIntExpr*>( dynamic_cast<const VMIntExpr*>(this) ); |
17 |
} |
18 |
|
19 |
VMStringExpr* VMExpr::asString() const { |
20 |
return const_cast<VMStringExpr*>( dynamic_cast<const VMStringExpr*>(this) ); |
21 |
} |
22 |
|
23 |
VMIntArrayExpr* VMExpr::asIntArray() const { |
24 |
return const_cast<VMIntArrayExpr*>( dynamic_cast<const VMIntArrayExpr*>(this) ); |
25 |
} |
26 |
|
27 |
void VMFunction::wrnMsg(const String& txt) { |
28 |
std::cout << "[ScriptVM] " << txt << std::endl; |
29 |
} |
30 |
|
31 |
void VMFunction::errMsg(const String& txt) { |
32 |
std::cerr << "[ScriptVM] " << txt << std::endl; |
33 |
} |
34 |
|
35 |
} // namespace LinuxSampler |