mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Kernel: Overload dbgputstr for char array literals in C++
This just seems like something we should be able to do. The compiler knows how long my "string literal" is, passing it along manually seems siilly.
This commit is contained in:
parent
5accedfedb
commit
fe0eb04a22
1 changed files with 10 additions and 0 deletions
|
@ -18,3 +18,13 @@ int get_serial_debug();
|
|||
#ifndef __serenity__
|
||||
#define dbgprintf printf
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
template <size_t N>
|
||||
inline int dbgputstr(const char (&array)[N])
|
||||
{
|
||||
return ::dbgputstr(array, N);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue