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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2619 - (hide annotations) (download)
Wed Jun 11 13:24:32 2014 UTC (9 years, 11 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 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 2619 VMIntArrayExpr* VMExpr::asIntArray() const {
24     return const_cast<VMIntArrayExpr*>( dynamic_cast<const VMIntArrayExpr*>(this) );
25     }
26    
27 schoenebeck 2598 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 schoenebeck 2596 } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC