Skip to content

Commit

Permalink
- added better logging when creating HTML files
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Nov 3, 2024
1 parent 821e22b commit 01b3d0b
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 4 deletions.
2 changes: 1 addition & 1 deletion currentGitHash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d0a9d71f5e94f7c7a68e4f88755e3e1351f1200e
821e22b4fb730e202a9440edea42bc3cd483d60b
2 changes: 1 addition & 1 deletion hi_backend/backend/currentGit.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PREVIOUS_HISE_COMMIT "d0a9d71f5e94f7c7a68e4f88755e3e1351f1200e"
#define PREVIOUS_HISE_COMMIT "821e22b4fb730e202a9440edea42bc3cd483d60b"
17 changes: 15 additions & 2 deletions projects/standalone/Source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ class CommandLineActions

if(htmlDir != File())
{
print("Creating HTML files");

htmlDir.createDirectory();
String htmlBaseLink = "https://docs.hise.dev/";

Expand All @@ -537,8 +539,19 @@ class CommandLineActions
headerContent = headerContent.replace("{BASE_URL}", htmlBaseLink);
headerFile.replaceWithText(headerContent);

DatabaseCrawler::createImagesInHtmlFolder(htmlDir, *bp, nullptr, nullptr);
DatabaseCrawler::createHtmlFilesInHtmlFolder(htmlDir, *bp, nullptr, nullptr);
struct Logger: public DatabaseCrawler::Logger
{
void logMessage(const String& message) override
{
print(message);
}
};

double progress;
Logger l;

DatabaseCrawler::createImagesInHtmlFolder(htmlDir, *bp, &l, &progress);
DatabaseCrawler::createHtmlFilesInHtmlFolder(htmlDir, *bp, &l, &progress);
}
}

Expand Down
70 changes: 70 additions & 0 deletions tools/snex_playground/test_files/map/test01.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
BEGIN_TEST_DATA
f: main
ret: int
args: int
input: 12
output: 12
error: ""
filename: "map/test01"
END_TEST_DATA
*/

struct ExternalFunctionMap
{
int value = 9000;
};

struct ExternalFunction
{
dyn<ExternalFunctionMap> m;

void setMap(dyn<ExternalFunctionMap> map)
{
m.referTo(map, 0, 1);
}


};

struct Base
{


int value = 90;
int value2 = 100;
};

span<ExternalFunctionMap, 1> map;
dyn<ExternalFunctionMap> m;

struct Derived: public Base
{
ExternalFunction f1;

void init(dyn<ExternalFunctionMap> m)
{
f1.setMap(m);
}

void ping0(int input)
{
value = input;
}
};

int main(int input)
{
m.referTo(map, 0, 1);



Derived obj;

obj.init(m);

obj.ping0(input);

return obj.value + obj.value2;
}

0 comments on commit 01b3d0b

Please sign in to comment.