예제 #1
0
    /// <summary>
    /// Gets xml tag for .vcxproj
    /// </summary>
    public String getExceptionHandlingValue(EKeyword keyword)
    {
        bool isCLangGccCompiler = keyword == EKeyword.Android;

        switch (ExceptionHandling)
        {
        default:
        case EExceptionHandling.Enabled:            // == SyncCThrow
            return((isCLangGccCompiler) ? "Enabled" : "SyncCThrow");

        case EExceptionHandling.Async:
            return((isCLangGccCompiler) ? "Enabled": "Async");

        case EExceptionHandling.Disabled:           // == NoExceptionHandling
            return((isCLangGccCompiler) ? "Disabled" : "false");

        case EExceptionHandling.Sync:
            return((isCLangGccCompiler) ? "Enabled" : "Sync");

        case EExceptionHandling.UnwindTables:
            return((isCLangGccCompiler) ? "UnwindTables" : "SyncCThrow");
        }
    }
예제 #2
0
파일: Define.cs 프로젝트: tomyqg/SemiGC
 public KeyWord(EKeyword type, EDataType returnType, string value)
 {
     Type       = type;
     ReturnType = returnType;
     Value      = value;
 }