コード例 #1
0
ファイル: method_dispatch.cpp プロジェクト: fhahn/casmi
    inline INT_T execute_normal(std::vector<INT_T> &context) {
      INT_T tmp = 0;
      if (left_ != nullptr) {
        tmp = left_->execute_normal(context);
      }

      IntAtom *ia = reinterpret_cast<IntAtom*>(right_);
      return tmp + ia->value();
    }
コード例 #2
0
ファイル: method_dispatch.cpp プロジェクト: fhahn/casmi
 inline INT_T execute_normal(std::vector<INT_T> &context) {
   context[index_] = expr_->execute_normal(context);
   return 0;
 }