2015-10-08 14:55:01 -04:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2017-02-22 23:37:31 -05:00
< meta name = "generator" content = "Doxygen 1.8.13" / >
2016-11-07 15:21:37 -05:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2016-11-11 12:39:21 -05:00
< title > Crashpad: util/misc/arraysize_unsafe.h File Reference< / title >
2015-10-08 14:55:01 -04:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
2016-11-08 14:26:59 -05:00
< link href = "crashpad_doxygen.css" rel = "stylesheet" type = "text/css" / >
2015-10-08 14:55:01 -04:00
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
2016-01-06 16:09:15 -05:00
< td id = "projectalign" style = "padding-left: 0.5em;" >
2015-10-08 14:55:01 -04:00
< div id = "projectname" > Crashpad
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2017-02-22 23:37:31 -05:00
<!-- Generated by Doxygen 1.8.13 -->
2015-10-08 14:55:01 -04:00
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
2016-11-07 15:21:37 -05:00
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
< / script >
< div id = "main-nav" > < / div >
2015-10-08 14:55:01 -04:00
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
2016-11-11 12:39:21 -05:00
< li class = "navelem" > < a class = "el" href = "dir_23ec12649285f9fabf3a6b7380226c28.html" > util< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_83573ff3a96d199825b0a6f960a8a5e3.html" > misc< / a > < / li > < / ul >
2015-10-08 14:55:01 -04:00
< / div >
< / div > <!-- top -->
< div class = "header" >
2016-11-11 12:39:21 -05:00
< div class = "summary" >
< a href = "#define-members" > Macros< / a > < / div >
2015-10-08 14:55:01 -04:00
< div class = "headertitle" >
2016-11-11 12:39:21 -05:00
< div class = "title" > arraysize_unsafe.h File Reference< / div > < / div >
2015-10-08 14:55:01 -04:00
< / div > <!-- header -->
< div class = "contents" >
2016-11-11 12:39:21 -05:00
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "define-members" > < / a >
Macros< / h2 > < / td > < / tr >
< tr class = "memitem:ac32c7cbd02153753886c0433595b5e82" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "arraysize__unsafe_8h.html#ac32c7cbd02153753886c0433595b5e82" > ARRAYSIZE_UNSAFE< / a > (array)      (sizeof(array) / sizeof(array[0]))< / td > < / tr >
< tr class = "memdesc:ac32c7cbd02153753886c0433595b5e82" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Not the safest way of computing an array’ s size… < a href = "#ac32c7cbd02153753886c0433595b5e82" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ac32c7cbd02153753886c0433595b5e82" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Macro Definition Documentation< / h2 >
< a id = "ac32c7cbd02153753886c0433595b5e82" > < / a >
2017-02-22 23:37:31 -05:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac32c7cbd02153753886c0433595b5e82" > ◆ < / a > < / span > ARRAYSIZE_UNSAFE< / h2 >
2016-11-11 12:39:21 -05:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define ARRAYSIZE_UNSAFE< / td >
< td > (< / td >
< td class = "paramtype" >   < / td >
< td class = "paramname" > array< / td > < td > )< / td >
< td >       (sizeof(array) / sizeof(array[0]))< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2015-10-08 14:55:01 -04:00
2016-11-11 12:39:21 -05:00
< p > Not the safest way of computing an array’ s size… < / p >
< p > < code > #include "base/macros.h"< / code > and use its < code > arraysize()< / code > instead. This macro should only be used in rare situations where < code > arraysize()< / code > does not function. < / p >
2015-10-08 14:55:01 -04:00
2016-11-11 12:39:21 -05:00
< / div >
< / div >
2015-10-08 14:55:01 -04:00
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
2017-02-22 23:37:31 -05:00
< / a > 1.8.13
2015-10-08 14:55:01 -04:00
< / small > < / address >
< / body >
< / html >