Lots of stuff

This commit is contained in:
elasota
2019-11-11 00:11:59 -05:00
parent 49a35bb15b
commit c8472f7295
406 changed files with 58313 additions and 88 deletions

View File

@@ -0,0 +1,37 @@
#pragma once
#ifndef __PL_APPLICATION_H__
#define __PL_APPLICATION_H__
#include "PLCore.h"
namespace PortabilityLayer
{
template<size_t TSize>
class PascalStrLiteral;
}
namespace PortabilityLayer
{
namespace Utils
{
void MakePStr(unsigned char *dest, size_t sz, const char *src);
}
}
void PasStringCopy(const unsigned char *src, unsigned char *dest);
template<size_t TSize>
void PasStringCopy(const PortabilityLayer::PascalStrLiteral<TSize> &src, unsigned char *dest);
void SysBeep(int duration);
///////////////////////////////////////////////////////////////////////////////
#include "PascalStrLiteral.h"
template<size_t TSize>
inline void PasStringCopy(const PortabilityLayer::PascalStrLiteral<TSize> &src, unsigned char *dest)
{
PortabilityLayer::Utils::MakePStr(dest, TSize - 1, src.GetStr());
}
#endif