Skip to content

Commit

Permalink
SDK classes into 'final' un-extendable class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Feb 25, 2024
1 parent 42ec0a9 commit 702b560
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdk/librishka/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef enum {
GPIO_HIGH = 0x1
} gpio_mode_t;

class Gpio {
class Gpio final {
public:
static void pin_mode(u8 pin, gpio_pin_mode_t mode);

Expand Down
2 changes: 1 addition & 1 deletion sdk/librishka/int.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ typedef enum {
INT_RISING = 0x3
} int_mode_t;

class Int {
class Int final {
public:
static void enable();
static void disable();
Expand Down
2 changes: 1 addition & 1 deletion sdk/librishka/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <librishka/types.h>

class IO {
class IO final {
public:
static void prints(const string text);
static void printn(i64 number);
Expand Down
2 changes: 1 addition & 1 deletion sdk/librishka/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <librishka/types.h>

class Memory {
class Memory final {
public:
static void alloc(any dest, usize size);
static void calloc(any dest, usize num, usize size);
Expand Down
2 changes: 1 addition & 1 deletion sdk/librishka/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef enum {
SYSINFO_SKETCH_MD5
} sysinfos_t;

class Sys {
class Sys final {
public:
static void delay(u64 ms);
static u64 micros();
Expand Down

0 comments on commit 702b560

Please sign in to comment.