src/compiler/ConstantEvaluator.h
author David Anderson <dvander@alliedmods.net>
Sun Jan 27 17:34:30 2013 -0800 (2013-01-27)
changeset 261 219b49bf4a03
parent 210 2f9997088e9b
child 263 ba85a47ee414
permissions -rw-r--r--
Add support for importing enum types and enum values (as constexprs).
dvander@210
     1
/* vim: set ts=4 sw=4 tw=99 et:
dvander@210
     2
 *
dvander@210
     3
 * Copyright (C) 2012 David Anderson
dvander@210
     4
 *
dvander@210
     5
 * This file is part of SourcePawn.
dvander@210
     6
 *
dvander@210
     7
 * SourcePawn is free software: you can redistribute it and/or modify it under
dvander@210
     8
 * the terms of the GNU General Public License as published by the Free
dvander@210
     9
 * Software Foundation, either version 3 of the License, or (at your option)
dvander@210
    10
 * any later version.
dvander@210
    11
 * 
dvander@210
    12
 * SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY
dvander@210
    13
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
dvander@210
    14
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
dvander@210
    15
 *
dvander@210
    16
 * You should have received a copy of the GNU General Public License along with
dvander@210
    17
 * SourcePawn. If not, see http://www.gnu.org/licenses/.
dvander@210
    18
 */
dvander@210
    19
#ifndef _include_sp2_constant_evaluator_h_
dvander@210
    20
#define _include_sp2_constant_evaluator_h_
dvander@210
    21
dvander@210
    22
#include "../Types.h"
dvander@210
    23
dvander@210
    24
namespace ke {
dvander@210
    25
dvander@210
    26
class Expression;
dvander@210
    27
dvander@210
    28
bool EvaluateForConstant(Expression *expr, BoxedPrimitive *out);
dvander@210
    29
dvander@210
    30
}
dvander@210
    31
dvander@210
    32
#endif // _include_sp2_constant_evaluator_h_