summaryrefslogtreecommitdiffstats
path: root/source/core/slang-test-tool-util.cpp
blob: 7ecfacefa8f52b4af6b1f90689489d7258545380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "slang-test-tool-util.h"

namespace Slang
{

/* static */int TestToolUtil::getReturnCode(SlangResult res)
{
    if (SLANG_SUCCEEDED(res))
    {
        return 0;
    }
    else if (res == SLANG_E_INTERNAL_FAIL)
    {
        return -1;
    }
    return 1;
}

}