This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Résolution problème templates non définis
TPP : CPP/HPP mais pour template
- Loading branch information
Showing
5 changed files
with
33 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// Created by Romain on 05/10/2020. | ||
|
||
#ifndef ROMAINOS_PRINTTEXT_TPP | ||
#define ROMAINOS_PRINTTEXT_TPP | ||
|
||
namespace std::io { | ||
template <typename T> | ||
void printInt(T value, _In_ const char* end, uint8_t color) { | ||
printString(intToString(value), end, color); | ||
} | ||
|
||
template <typename T> | ||
void printFloat(T value, _In_ const char* end, u8 decimalPlaces, uint8_t color) { | ||
printString(floatToString(value, decimalPlaces), end, color); | ||
} | ||
|
||
template <typename T> | ||
void printHex(T value, _In_ const char* end, uint8_t color) { | ||
printString(hexToString(value), end, color); | ||
} | ||
} | ||
|
||
#endif //ROMAINOS_PRINTTEXT_TPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,4 +99,6 @@ class Stack { | |
size_t _length; | ||
}; | ||
|
||
#include "stack.tpp" | ||
|
||
#endif //ROMAINOS_STACK_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters