hedgewars/uUtils.pas
branchwebgl
changeset 8847 ff7fbab7cd56
parent 8841 338f7c2bac2c
parent 8838 aa2ffd427f6a
child 8850 ae8a957c69fd
--- a/hedgewars/uUtils.pas	Wed Apr 03 00:17:21 2013 +0400
+++ b/hedgewars/uUtils.pas	Thu Apr 04 00:32:57 2013 +0200
@@ -30,14 +30,12 @@
 procedure SplitByChar(var a, b: ansistring; c: char);
 {$ENDIF}
 
-//{$IFNDEF PAS2C}
 function  EnumToStr(const en : TGearType) : shortstring; overload;
 function  EnumToStr(const en : TVisualGearType) : shortstring; overload;
 function  EnumToStr(const en : TSound) : shortstring; overload;
 function  EnumToStr(const en : TAmmoType) : shortstring; overload;
 function  EnumToStr(const en : THogEffect) : shortstring; overload;
 function  EnumToStr(const en : TCapGroup) : shortstring; overload;
-//{$ENDIF}
 
 function  Min(a, b: LongInt): LongInt; inline;
 function  Max(a, b: LongInt): LongInt; inline;
@@ -143,11 +141,11 @@
 end; { SplitByChar }
 {$ENDIF}
 
-//{$IFNDEF PAS2C}
 function EnumToStr(const en : TGearType) : shortstring; overload;
 begin
 EnumToStr:= GetEnumName(TypeInfo(TGearType), ord(en))
 end;
+
 function EnumToStr(const en : TVisualGearType) : shortstring; overload;
 begin
 EnumToStr:= GetEnumName(TypeInfo(TVisualGearType), ord(en))
@@ -172,7 +170,7 @@
 begin
 EnumToStr := GetEnumName(TypeInfo(TCapGroup), ord(en))
 end;
-//{$ENDIF}
+
 
 function Min(a, b: LongInt): LongInt;
 begin