Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] stdlib/debug: update some deprecation messages

  • Loading branch information...
commit 9c609b5fb73be0068be398d5ee93f6fafe137356 1 parent d984e38
François-Régis Sinot authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 stdlib/core/debug.opa
View
9 stdlib/core/debug.opa
@@ -26,6 +26,7 @@
/**
* {1 About this module}
+
*
* {1 Where should I start?}
*
@@ -38,7 +39,7 @@
Debug = {{
-@deprecated({use="the directive @fail"})
+@deprecated({use="the directive @fail (or Log.error if you do not want to fail)"})
error(s) = @fail(s) :'a
/**
@@ -98,14 +99,14 @@ alert(s)=warning(s)
flush_all = %% Bslpervasives.flush_all %%
/**
- * Quit if some condition is false.
+ * Deprecated
**/
-@deprecated({hint="This function will be replaced by a compiler directive"})
+@deprecated({use="do @assert(cond) instead of assert(cond, fun)"})
assert(condition:bool, message:-> string) =
if condition then void
else error("Assertion failed: {message()}")
}}
-@deprecated({hint="This function will be replaced by a compiler directive"})
+@deprecated({use="do @assert(cond) instead of assert(cond, fun)"})
assert = Debug.assert
Please sign in to comment.
Something went wrong with that request. Please try again.