Skip to content

Commit

Permalink
Deprecate static mem functions.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Rohloff <v10lator@myway.de>
  • Loading branch information
V10lator committed Dec 15, 2023
1 parent bca6660 commit b3ee89e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/staticMem.h
Expand Up @@ -31,9 +31,9 @@ extern "C"
bool initStaticMem() __attribute__((__cold__));
void shutdownStaticMem() __attribute__((__cold__));

char *getStaticScreenBuffer() __attribute__((__hot__));
char *getStaticLineBuffer() __attribute__((__hot__));
char *getStaticPathBuffer(uint32_t i) __attribute__((__hot__));
char *getStaticScreenBuffer() __attribute__((__hot__)) __attribute__((deprecated("Use a buffer on stack or heap instead")));
char *getStaticLineBuffer() __attribute__((__hot__)) __attribute__((deprecated("Use a buffer on stack or heap instead")));
char *getStaticPathBuffer(uint32_t i) __attribute__((__hot__)) __attribute__((deprecated("Use a buffer on stack or heap instead")));

#ifdef __cplusplus
}
Expand Down

0 comments on commit b3ee89e

Please sign in to comment.