From 94909e39d4a4b91e1765d10e7bc93d3732513a00 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 17 Sep 2014 16:55:56 +0300 Subject: [PATCH] doc --- conventions.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conventions.txt b/conventions.txt index 275d66b..eae7db0 100644 --- a/conventions.txt +++ b/conventions.txt @@ -30,6 +30,9 @@ Use std::unique_ptr and std::shared_ptr. (core/types.h: up_<> and sp_<>) Function naming: - Suffix _u: Unsafe, not included in public interface +Do not use assert(); throw anonymous exceptions instead: +- if(fail) throw Exception("Thing failed"); + Non-exception throwing and exception-throwing methods ----------------------------------------------------- - get_x: Returns NULL or equivalent if not found