/[svn]/linuxsampler/trunk/src/scriptvm/common.cpp
ViewVC logotype

Contents of /linuxsampler/trunk/src/scriptvm/common.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2619 - (show annotations) (download)
Wed Jun 11 13:24:32 2014 UTC (9 years, 10 months ago) by schoenebeck
File size: 919 byte(s)
* Implemented built-in instrument script function "abs()".
* Implemented built-in instrument script function "random()".
* Implemented built-in instrument script function "num_elements()".
* Disabled debug mode of RefPtr template class.
* Bumped version (1.0.0.svn51).

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

  ViewVC Help
Powered by ViewVC