hlsl2glslfork/hlslang/MachineIndependent/InfoSink.cpp

32 строки
656 B
C++
Исходник Постоянная ссылка Обычный вид История

// Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.txt file.
2010-02-24 12:59:48 +03:00
#include "../Include/InfoSink.h"
2011-07-06 10:32:52 +04:00
#include <string.h>
2010-02-24 12:59:48 +03:00
void TInfoSinkBase::append(const char *s)
{
2010-05-17 00:19:22 +04:00
checkMem(strlen(s));
sink.append(s);
2010-02-24 12:59:48 +03:00
}
void TInfoSinkBase::append(int count, char c)
{
2010-05-17 00:19:22 +04:00
checkMem(count);
sink.append(count, c);
2010-02-24 12:59:48 +03:00
}
2012-10-02 10:29:07 +04:00
void TInfoSinkBase::append(const std::string& t)
2010-02-24 12:59:48 +03:00
{
2010-05-17 00:19:22 +04:00
checkMem(t.size());
sink.append(t);
2010-02-24 12:59:48 +03:00
}
void TInfoSinkBase::append(const TString& t)
{
2010-05-17 00:19:22 +04:00
checkMem(t.size());
sink.append(t.c_str());
2010-02-24 12:59:48 +03:00
}