-
Notifications
You must be signed in to change notification settings - Fork 4
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
046c696
commit d136b8b
Showing
25 changed files
with
258 additions
and
137 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ use common.* | |
use modules.* | ||
use streams.* | ||
use song.* | ||
use async.* | ||
use os | ||
use kaba | ||
|
||
|
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ use processing.* | |
|
||
let EXPORT_IMPORTS = true | ||
|
||
use async.* | ||
use hui | ||
use kaba | ||
use os | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
namespace kaba { | ||
|
||
string Version = "0.20.6.3"; | ||
string Version = "0.20.7.0"; | ||
|
||
//#define ScriptDebug | ||
|
||
|
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,31 @@ | ||
#include "../kaba.h" | ||
#include "future.h" | ||
|
||
namespace kaba { | ||
|
||
const Class *TypeFutureT; | ||
const Class *TypePromiseT; | ||
const Class *TypeFutureCoreT; | ||
|
||
const Class* TypeVoidFuture; | ||
const Class* TypeVoidPromise; | ||
const Class* TypeStringFuture; | ||
const Class* TypeStringPromise; | ||
|
||
void SIAddPackageAsync(Context *c) { | ||
add_package(c, "async"); | ||
|
||
TypeFutureCoreT = add_class_template("@FutureCore", {"T"}, new TemplateClassInstantiatorFutureCore); | ||
TypeFutureT = add_class_template("future", {"T"}, new TemplateClassInstantiatorFuture); | ||
TypePromiseT = add_class_template("promise", {"T"}, new TemplateClassInstantiatorPromise); | ||
|
||
|
||
// some pre-defined futures (more in hui) | ||
TypeVoidFuture = add_type("future[void]", sizeof(base::future<void>)); | ||
TypeVoidPromise = add_type("promise[void]", sizeof(base::promise<void>)); | ||
TypeStringFuture = add_type("future[string]", sizeof(base::future<string>)); | ||
TypeStringPromise = add_type("promise[string]", sizeof(base::promise<string>)); | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.