Skip to content

Commit

Permalink
fixed git ignore,
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragingram2 committed Sep 22, 2023
1 parent 0b57e33 commit f72c392
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bld/
!**/engine/resources/**

# Rythe engine tools folder
!tools/
!**/tools/**

# Word temporary files
~$*.*
Expand Down
13 changes: 12 additions & 1 deletion applications/rsl_test/src/rsl_test/source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ static void func() {
}

static void func2(unsigned& i) {
std::cout << "function" << i << "\n";
static unsigned tmp = 0;
static volatile unsigned* ptr = &tmp;
*ptr = i;
}

struct Object {
Expand Down Expand Up @@ -117,6 +119,15 @@ void delegate_test(size_t i) {
}

void stl_test(size_t i) {

std::function<void(rsl::uint32&)> del2;

{
del2 = &func2;
rsl::uint32 t = 0;
del2(t);
}

std::function<void()> del;

{
Expand Down
File renamed without changes.

0 comments on commit f72c392

Please sign in to comment.