-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b0a649
commit bd1a210
Showing
4 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef ARRAY_POINTER_H | ||
#define ARRAY_POINTER_H | ||
|
||
#include <cstdint> | ||
#include <cstddef> | ||
|
||
template <class T> | ||
class ArrayPointer { | ||
public: | ||
T* const ptr; | ||
const size_t size; | ||
ArrayPointer(T * ptr, size_t size): ptr(ptr), size(size){} | ||
}; | ||
|
||
#endif // ARRAY_POINTER_H |
4 changes: 2 additions & 2 deletions
4
src/mbedos/test-bme688/source/bme688/Defer.h → src/mbedos/test-bme688/source/utils/Defer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#ifndef __DEFER__H | ||
#define __DEFER__H | ||
#ifndef DEFER_H | ||
#define DEFER_H | ||
|
||
template <class T> | ||
class Defer | ||
|