new file: LSList.h

new file:   LSListItem.h
	new file:   LSMacros.h
	modified:   LSString.h
	modified:   LSString.vcxproj
	new file:   LSVector.h
	modified:   main.cpp
This commit is contained in:
DirtyDuckEUW 2021-10-18 23:58:17 +02:00
parent 6e22717a81
commit 4f9b04c049
7 changed files with 194 additions and 26 deletions

View file

@ -1,23 +1,9 @@
#pragma once
#include <string>
#include "LSMacros.h"
class LSString
{
private:
#define DELETE_POINTER(Pointer) \
if (Pointer != nullptr)\
{\
delete Pointer;\
Pointer = nullptr;\
}
#define DELETE_ARRAY(Array) \
if (Array != nullptr)\
{\
delete[] Array;\
Array = nullptr;\
}
public:
// - Constructor
LSString() = default;