- Adjusted Formatting of tests
- Finished map implementation and unit tests TODO: Threading
This commit is contained in:
@@ -921,7 +921,7 @@ bool file::eof() const {
|
||||
|
||||
char file::getc() {
|
||||
assert(_error == nullptr, "Attempted an Operation on a File in an Errored State");
|
||||
assert(not _mode & fmode_wide, "Attempted Byte Operation on Wide File");
|
||||
assert(not(_mode & fmode_wide), "Attempted Byte Operation on Wide File");
|
||||
|
||||
// Check if there is a file
|
||||
if (_handle == nullptr) {
|
||||
@@ -961,7 +961,7 @@ size_t file::read(void* data, size_t size, size_t n) {
|
||||
|
||||
string file::getline() {
|
||||
assert(_error == nullptr, "Attempted an Operation on a File in an Errored State");
|
||||
assert(not _mode & fmode_wide, "Attempted Byte Operation on Wide File");
|
||||
assert(not(_mode & fmode_wide), "Attempted Byte Operation on Wide File");
|
||||
|
||||
// Check if there is a file
|
||||
if (_handle == nullptr) {
|
||||
@@ -1011,7 +1011,7 @@ wstring file::getwline() {
|
||||
|
||||
bool file::putc(char c) {
|
||||
assert(_error == nullptr, "Attempted an Operation on a File in an Errored State");
|
||||
assert(not _mode & fmode_wide, "Attempted Byte Operation on Wide File");
|
||||
assert(not(_mode & fmode_wide), "Attempted Byte Operation on Wide File");
|
||||
|
||||
// Check if there is a file
|
||||
if (_handle == nullptr) {
|
||||
|
||||
@@ -39,7 +39,7 @@ wayland_display::wayland_display(linux_platform* platform, const cstring& drv)
|
||||
, _handle()
|
||||
, _platform(platform) {
|
||||
load_symbols(_platform);
|
||||
_handle = wl_display_connect(nullptr);
|
||||
_handle = wl_display_connect(drv);
|
||||
}
|
||||
|
||||
wayland_display::~wayland_display() {
|
||||
|
||||
Reference in New Issue
Block a user