-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated from dagor4 repo on 2023/10/22, rev 0c5bf9c1d82d7491c925febbb…
…3bfd48d015637df
- Loading branch information
1 parent
98b313a
commit e97a495
Showing
3,840 changed files
with
98,709 additions
and
53,098 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
|
@@ -11,3 +11,5 @@ | |
/_output/ | ||
*.pyc | ||
*.das.inl | ||
*.sh.log | ||
ShaderLog-* |
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 +1 @@ | ||
bd13cb3e43d51b1e16daa6d06d4011139f91fbe0 | ||
0c5bf9c1d82d7491c925febbb3bfd48d015637df |
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
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
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
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,46 @@ | ||
options indenting = 4 | ||
options no_unused_block_arguments = false | ||
options no_unused_function_arguments = false | ||
options no_aot = true | ||
options strict_smart_pointers = true | ||
|
||
module temp_strings shared private | ||
|
||
require daslib/ast_boost | ||
require strings public | ||
|
||
def public build_temp_string(bldr : block<(var writer : StringBuilderWriter) : void>; cb : block<(res : string#) : void>) | ||
//! Same as build_string, but delete the string after the callback is called. | ||
//! Intern strings are not deleted. | ||
var str = build_string(bldr) | ||
unsafe | ||
cb |> invoke(reinterpret<string#> str) | ||
if !is_intern_strings() | ||
delete_string(reinterpret<string> str) | ||
|
||
[tag_function(temp_string_tag)] | ||
def public temp_string(str : string; cb : block<(res : string#) : void>) | ||
//! Pass string to the callback and delete it after the callback is called. | ||
//! Accept only strings with substitutions (string builder). Intern strings are not deleted. | ||
unsafe | ||
cb |> invoke(reinterpret<string#> str) | ||
if !is_intern_strings() | ||
delete_string(reinterpret<string> str) | ||
|
||
[tag_function_macro(tag="temp_string_tag")] | ||
class TempStringMacro : AstFunctionAnnotation | ||
def override verifyCall(var call : smart_ptr<ExprCallFunc>; args, progArgs : AnnotationArgumentList; var errors : das_string) : bool | ||
if call.arguments[0] is ExprStringBuilder | ||
return true | ||
|
||
errors := "temp_string argument must be a string with subtitutions (string builder)" | ||
return false | ||
|
||
def public temp_string(arr : array<uint8>; cb : block<(res : string#) : void>) | ||
//! Construct string from array of bytes and pass it to the callback. | ||
//! Delete the string after the callback is called. Intern strings are not deleted. | ||
var str = string(arr) | ||
unsafe | ||
cb |> invoke(reinterpret<string#> str) | ||
if !is_intern_strings() | ||
delete_string(reinterpret<string> str) |
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
1 change: 1 addition & 0 deletions
1
...artyLibs/daScript/doc/source/stdlib/detail/function-jobque_boost-push_batch.rst
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 @@ | ||
pushes values to the channel (at the end) |
1 change: 1 addition & 0 deletions
1
...bs/daScript/doc/source/stdlib/detail/function-jobque_boost-push_batch_clone.rst
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 @@ | ||
clones data and pushed values to the channel (at the end) |
Oops, something went wrong.