/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/function/function_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2021-09-08 21:15:31 UTC
  • mfrom: (12.1.3 fastnumber)
  • Revision ID: gustav.hartvigsson@gmail.com-20210908211531-xyhqodfa2gmzxurl
* merge the FastNumber branch. this will make code reuse better.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
using Gee;
2
2
 
3
3
using VQDR.Expression;
 
4
using VQDR.Common;
4
5
 
5
6
namespace VQDR.Expression {
6
7
  public abstract class FunctionToken : Token {
122
123
      return ret_val;
123
124
    }
124
125
    
125
 
    protected long get_optional_child_raw_result (Context instance,
 
126
    protected FastNumber get_optional_child_raw_result (Context instance,
126
127
                                                  int index,
127
128
                                                  long default_result)
128
129
                                                  throws GLib.Error {
132
133
         tmp_roll.evaluate (instance);
133
134
         return tmp_roll.result_value;
134
135
     } else {
135
 
       return default_result;
 
136
       return FastNumber.raw (default_result);
136
137
     }
137
138
    }
138
139