1 |
schoenebeck |
2596 |
/* |
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 |
schoenebeck |
2598 |
#include <iostream> |
12 |
schoenebeck |
2596 |
|
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 |
schoenebeck |
2598 |
void VMFunction::wrnMsg(const String& txt) { |
24 |
|
|
std::cout << "[ScriptVM] " << txt << std::endl; |
25 |
|
|
} |
26 |
|
|
|
27 |
|
|
void VMFunction::errMsg(const String& txt) { |
28 |
|
|
std::cerr << "[ScriptVM] " << txt << std::endl; |
29 |
|
|
} |
30 |
|
|
|
31 |
schoenebeck |
2596 |
} // namespace LinuxSampler |