Skip to content

Commit

Permalink
feature: add MAX and MIN macros
Browse files Browse the repository at this point in the history
  • Loading branch information
hozlucas28 committed Sep 26, 2024
1 parent 471db12 commit 4ff60ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
#ifndef LIBS_MACROS_H_INCLUDED
#define LIBS_MACROS_H_INCLUDED

// TODO: Documentation
#define MAX(a, b) a > b ? a : b;

// TODO: Documentation
#define MIN(a, b) a > b ? b : a;

/**
* @def MAXIMUM_DELAY
* @brief Defines the maximum delay in milliseconds.
Expand Down

0 comments on commit 4ff60ac

Please sign in to comment.