diff -r 3ac2a36a7a0c -r cf82769eb136 src/TypeManager.h --- a/src/TypeManager.h Sun Aug 05 14:19:19 2012 -0700 +++ b/src/TypeManager.h Sun Aug 05 15:38:52 2012 -0700 @@ -1,19 +1,20 @@ -/* +/* vim: set ts=4 sw=4 tw=99 et: + * * Copyright (C) 2012 David Anderson * - * This file is part of JITCraft. + * This file is part of SourcePawn. * - * JITCraft is free software: you can redistribute it and/or modify it under + * SourcePawn is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your option) * any later version. * - * Foobar is distributed in the hope that it will be useful, but WITHOUT ANY + * SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with - * JITCraft. If not, see http://www.gnu.org/licenses/. + * SourcePawn. If not, see http://www.gnu.org/licenses/. */ #ifndef _include_jitcraft_type_manager_h_ #define _include_jitcraft_type_manager_h_ @@ -32,6 +33,7 @@ // Primitive type cache. Unbarriered voidType_; + Unbarriered uncheckedType_; Unbarriered primitiveTypes_[PrimitiveTypes_Total]; Unbarriered referenceTypes_[PrimitiveTypes_Total]; @@ -47,6 +49,9 @@ Type *getVoid() { return voidType_; } + Type *getUnchecked() { + return uncheckedType_; + } Type *getReference(Handle type, bool isConst); Type *unsafeArray(Handle contained, int elements, bool isConst); Type *newEnum(Handle name);