00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "functype.h"
00018
00019
00020 namespace VM
00021 {
00022
00023 TLString FuncType::TypeString() const
00024 {
00025 TLString str;
00026
00027 char tmp[2];
00028 int idx=0;
00029
00030 if(exported) tmp[idx++]='e';
00031 else tmp[idx++]='s';
00032 switch(id)
00033 {
00034 case Unknown: tmp[idx++]='*'; break;
00035 case Function: tmp[idx++]='f'; break;
00036 case Method: tmp[idx++]='m'; break;
00037 case VMethod: tmp[idx++]='v'; break;
00038 default: tmp[idx++]='?'; break;
00039 }
00040 str.assign(tmp,idx);
00041
00042 return(str);
00043 }
00044
00045 }