Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gk646/cxstructs
Browse files Browse the repository at this point in the history
  • Loading branch information
gk646 committed May 10, 2024
2 parents f41f4dc + 0df0728 commit 8d53387
Show file tree
Hide file tree
Showing 5 changed files with 249 additions and 144 deletions.
6 changes: 2 additions & 4 deletions include/cxconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
# define CX_INL inline
# define CX_NDISC [[nodiscard]]

/**
* namespace for exposed structs and functions
*/
// namespace for exposed structs and functions
namespace cxstructs {}


Expand All @@ -57,4 +55,4 @@ typedef int uint_16_cx;
typedef int int_32_cx;
# endif

#endif //CXSTRUCTS_SRC_CONFIG_H_
#endif //CXSTRUCTS_SRC_CONFIG_H_
16 changes: 8 additions & 8 deletions include/cxstructs/StackHashMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,14 @@ class StackHashMap {

CX_ASSERT(myMap2["hey"] == 100, "");

cxstructs::StackHashMap<const char*, int, 7, cxstructs::Fnv1aHash> compMap;
compMap.insert("hello", 5);
compMap.insert("bye", 10);
compMap.insert("hihi", 15);

printf("%d\n", compMap["hello"]);
printf("%d\n", compMap["bye"]);
printf("%d\n", compMap["hihi"]);
//cxstructs::StackHashMap<const char*, int, 7, cxstructs::Fnv1aHash> compMap;
//compMap.insert("hello", 5);
//compMap.insert("bye", 10);
//compMap.insert("hihi", 15);

//printf("%d\n", compMap["hello"]);
//printf("%d\n", compMap["bye"]);
// printf("%d\n", compMap["hihi"]);
}
# endif
};
Expand Down
Loading

0 comments on commit 8d53387

Please sign in to comment.