mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
415 B
18 lines
415 B
#pragma once
|
|
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
// Mock Arduino compatibility header for native testing.
|
|
// Provides the small libc-backed helpers needed by Arduino-oriented code.
|
|
inline char* ltoa(long value, char* buffer, int base) {
|
|
if (base == 10) {
|
|
snprintf(buffer, 32, "%ld", value);
|
|
} else {
|
|
buffer[0] = 0;
|
|
}
|
|
return buffer;
|
|
}
|
|
|